<template>
    <div class='mainWrap'>
        <div class="head">
            <p><van-icon name="location-o" size="15"/><span>送至：</span><span @click="(toAddress(adds))">{{adds}}</span><van-icon name="arrow" /></p> <van-icon name="search" size="20"  />
        </div>
        <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
            <van-swipe-item>1</van-swipe-item>
            <van-swipe-item>2</van-swipe-item>
            <van-swipe-item>3</van-swipe-item>
            <van-swipe-item>4</van-swipe-item>
            </van-swipe>
    </div>
</template>
<script>
export default {
    data(){
        return{
            adds:'八维操场',
        }
    },
    methods:{
        toAddress(adds){
            this.$router.push({path:'/address',query:{adds}})
        }
    }
}
</script>
<style lang="scss" scoped>
    .mainWrap{
        width: 100%;
        .head{
            width: 100%;
            height: 50px;
            background: #f3f3f3;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 15px;
            span{
                font-size: 14px;
                color: #333;
            }
        }
    }
    .my-swipe .van-swipe-item {
    color: #fff;
    font-size: 20px;
    line-height: 150px;
    text-align: center;
    background-color: #39a9ed;
  }
</style>